<?php

namespace Home\Model;
use Think\Model;
class NotesModel extends Model {
    protected $_validate=array(
      array('name','require','昵称必须输入！'),
      array('content','require','愿望必须输入！'),
    );
    protected $_auto=   array(
      array('addtime','getTime',1,'callback'),
      );
    protected function getTime()
    {  
        return date("Y-m-d h:i:s");
    }
}

